
import Router from 'koa-router'
import UserController from '../controllers/user'

const routerList = new Router({ prefix: '/user' })

/* 增删改查 */
routerList.post('/add', UserController.addUser)
routerList.post('/list', UserController.getUser)
routerList.post('/update', UserController.getUser)
routerList.post('/delete', UserController.getUser)

/* 登录 */
routerList.post('/login', UserController.login)

/* 获取好友 */
routerList.post('/getUserFriends', UserController.getUserFriends)

export default routerList